# -*- conding:UTF-8 -*-

'''
@ Project: P8 hw register_login
@ File: users.py
@ Author: 罗婷
@ Date：2022/6/16 19:20

'''
from flask_restful import fields

# 用户表
users_fields = {
    'uid': fields.Integer,
    'is_superuser': fields.Integer,
    'account': fields.String,
    'password': fields.String,
    'phone': fields.String,
    'email': fields.String,
    'nick_name': fields.String,
    'profile_photo': fields.String,
    'address': fields.String,
    'occupation': fields.String,
    'school': fields.String,
    'experience': fields.String,
    'last_login': fields.DateTime,
    'register_time': fields.DateTime,
}

# vip表
vip_fields = {
    'id': fields.Integer,
    'level': fields.Integer,
    'period': fields.Integer,
    'price': fields.Float,
    'exempt_cour': fields.Float,
    'vip_cour': fields.Float,
    'environment': fields.Float,
    'save': fields.Float,
    'client': fields.Float,
    'ssh': fields.Float,
    'webide': fields.Float,
    'discounts': fields.Float,
    'exempt_study': fields.Float,
    'user': fields.Float,
    'title': fields.String,
    'desc': fields.String,

}

